//
//  User.swift
//  ChinaLandMark
//
//  Created by Felix Hi on 2021/6/29.
//

import Foundation

struct User {
    var username: String
    var prefersNotifications = true
    var seasonalPhoto = Season.winter
    var goalDate = Date()
    
    // 单例
    static let `default` = Self(username: "HiFelix")
    
    enum Season: String, CaseIterable {
        case spring = "🌷"
        case summer = "🌞"
        case autumn = "🍂"
        case winter = "☃️"
    }
}
